package com.definity.toolkit.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class SimpleAuth extends Authenticator {
	
	private String username = null;
	private String password = null;

	public SimpleAuth(String user, String pwd) {
		username = user;
		password = pwd;
	}

	@Override
	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(username, password);
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
}